Skip to main content

scaleX

Type

property

Summary

Sets the horizontal scaling of an object by adjusting its width

Syntax

set the scaleX of object to <number>[%]

Description

Use the scaleX property to scale an object horizontally in pixels or as a percentage of its width. This property can only be set, getting the value will return empty.

When set, it adjusts the object by updating its width relative to the current width.

Examples

# Increase width by 100 pixels
set the scaleX of btn "MyButton" to 100
# Increase width by half the current width
set the scaleX of btn "MyButton" to "50%"

Compatibility and Support

OS

mac

windows

linux

ios

android

Platforms

desktop

mobile

web